//
//  HomeSpecialCollectionCell.m
//  ArtDog
//
//  Created by dllo on 16/9/1.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "HomeSpecialCollectionCell.h"
#import "HomeGalleryList.h"
#import "UIImageView+WebCache.h"

@interface HomeSpecialCollectionCell ()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UIImageView *picImageView;

@property (weak, nonatomic) IBOutlet UILabel *viewerLabel;

@property (weak, nonatomic) IBOutlet UILabel *commentLabel;

@end

@implementation HomeSpecialCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setGalleryModel:(HomeGalleryList *)galleryModel
{
    _galleryModel = galleryModel;
    _nameLabel.text = galleryModel.topicName;
    [_picImageView sd_setImageWithURL:[NSURL URLWithString:galleryModel.topicPic] placeholderImage:[UIImage imageNamed:@"placeholder"]];
    _viewerLabel.text = [NSString stringWithFormat:@"%@", galleryModel.viewerNum];
    _commentLabel.text = [NSString stringWithFormat:@"%@", galleryModel.joinNum];
}

@end
